<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="ww" uri="/webwork"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>sort-demo</title>
	</head>
	<body>
		<ww:bean name="'webwork.util.Counter'" id="counter">
			<ww:param name="'first'" value="0" />
			<ww:param name="'last'" value="5" />
		</ww:bean>

		<ww:bean name="'webwork.util.Sorter'" id="sorter" />

		Ascending:
		<br />
		<ww:sort source="#counter" comparator="#sorter.ascending">
			<ww:iterator>
				<ww:property />
				<br />
			</ww:iterator>
		</ww:sort>
	</body>
</html>